# linux 化风格的环境变量
function ImportGlobalEnvs
{
    Get-Content $env:scripts\ModulesByCxxu\envs\env.ps1 | ForEach-Object {
        $line = $_.ToString()
        if ($line.Length -ne 0)
        {
            # continue
            # $line -replace '^\$', ('$' + 'global:')
            $line = $line -replace '^\$', '$global:'
            # for debug
            # Write-Output $line
            Invoke-Expression $line
        }
    }
}
 
ImportGlobalEnvs